package com.iuhao.orange.domain.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanhao
 * @since 2018-09-01
 */
@TableName("app_dictionary")
public class AppDictionary extends Model<AppDictionary> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id:数据字典
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 数据字典类型
     */
	@TableField("type_code")
	private Integer typeCode;
	private String type;
	private String name;
	private String value;
    /**
     * 排序规则
     */
	private Integer seq;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public AppDictionary setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getTypeCode() {
		return typeCode;
	}

	public AppDictionary setTypeCode(Integer typeCode) {
		this.typeCode = typeCode;
		return this;
	}

	public String getType() {
		return type;
	}

	public AppDictionary setType(String type) {
		this.type = type;
		return this;
	}

	public String getName() {
		return name;
	}

	public AppDictionary setName(String name) {
		this.name = name;
		return this;
	}

	public String getValue() {
		return value;
	}

	public AppDictionary setValue(String value) {
		this.value = value;
		return this;
	}

	public Integer getSeq() {
		return seq;
	}

	public AppDictionary setSeq(Integer seq) {
		this.seq = seq;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public AppDictionary setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public AppDictionary setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "AppDictionary{" +
			"id=" + id +
			", typeCode=" + typeCode +
			", type=" + type +
			", name=" + name +
			", value=" + value +
			", seq=" + seq +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
